package com.bbzn.device.client.dao.planleader;

import com.bbzn.device.client.dataobject.PlanLeader;

import java.util.Date;
import java.util.List;

import com.bbzn.device.client.dto.index.PlanLeaderDTO;
import org.apache.ibatis.annotations.Param;

public interface PlanLeaderMapper {
    int deleteByPrimaryKey(Long id);

    int deleteByLeaderId(@Param("id") Long id);

    int insert(PlanLeader record);

    int insertOrUpdate(PlanLeader record);

    int insertOrUpdateSelective(PlanLeader record);

    int insertSelective(PlanLeader record);

    PlanLeader selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(PlanLeader record);

    int updateByPrimaryKey(PlanLeader record);

    List<PlanLeader> findByAll(PlanLeader planLeader);

    int updateBatch(List<PlanLeader> list);

    int updateBatchSelective(List<PlanLeader> list);

    int batchInsert(@Param("list") List<PlanLeader> list);

    int batchDelByPlanIds(@Param("list") List<Long> list);

    /**
     * 根据id查询计划选择的领导人
     */
    List<PlanLeaderDTO> getPlanLeaderList(@Param("id") Long id);
}